# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from pink.commands import Command
from cleo.io.inputs.option import Option as option


class __class__(Command):
    name = 'command-slug'
    description = 'New command description'
    options = [
        option('option1', 'o', description='Option 1 description', default=False),
    ]

    """
    New command description

    command-slug
        {arg1 : Argument 1 description}
        {--o|--option1 : Option 1 description}
    """

    def __init__(self, application):
        super().__init__()
        self.app = application

    def handle(self):
        # do whatever you want !

        self.info("Success !")
